
/*
    用来描述进程的任务
 */
public class WorkUnit {
    private boolean isUseCPU;
    private Device relyDevice;
    private int timeZone;
    //CPU相关工作
    private String CPUWork;
    private int pageNum;
    private int pageOffset;
    private String processWork;
    private Object processWorkParameter;
    //IO相关工作
    private boolean isControl;
    private String fileWork;
    private String fileWorkParameter;

    public void setUseCPU(boolean useCPU) {
        isUseCPU = useCPU;
    }

    public void setRelyDevice(Device relyDevice) {
        this.relyDevice = relyDevice;
    }

    public void setTimeZone(int timeZone) {
        this.timeZone = timeZone;
    }

    public String getCPUWork() {
        return CPUWork;
    }

    public void setCPUWork(String CPUWork) {
        this.CPUWork = CPUWork;
    }

    public int getPageNum() {
        return pageNum;
    }

    public int getPageOffset() {
        return pageOffset;
    }

    public void setProcessWork(String processWork) {
        this.processWork = processWork;
    }

    public void setProcessWorkParameter(Object processWorkParameter) {
        this.processWorkParameter = processWorkParameter;
    }

    public void setControl(boolean control) {
        isControl = control;
    }

    public void setFileWork(String fileWork) {
        this.fileWork = fileWork;
    }

    public void setFileWorkParameter(String fileWorkParameter) {
        this.fileWorkParameter = fileWorkParameter;
    }

    public boolean isUseCPU() {
        return isUseCPU;
    }

    public Device getRelyDevice() {
        return relyDevice;
    }

    public int getTimeZone() {
        return timeZone;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public void setPageOffset(int pageOffset) {
        this.pageOffset = pageOffset;
    }

    public String getProcessWork() {
        return processWork;
    }

    public Object getProcessWorkParameter() {
        return processWorkParameter;
    }

    public boolean isControl() {
        return isControl;
    }

    public String getFileWork() {
        return fileWork;
    }

    public String getFileWorkParameter() {
        return fileWorkParameter;
    }
}
